package HeSuanServer.controller;

import HeSuanServer.POJO.R.Result;
import HeSuanServer.POJO.UmSearch;
import HeSuanServer.service.IndexService;
import HeSuanServer.service.UmService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

/**
 * @描述:
 * @author: LH
 * @date: 2023/4/9
 */
@CrossOrigin
@RequestMapping("index")
@RestController
@Slf4j
public class indexController {
    @Autowired
    private IndexService indexService;
    @GetMapping("gety")
    public Result gety(){
        return indexService.getY();
    }
    @GetMapping("totaly")
    public Result totaly(){
        return indexService.totalY();
    }
    @GetMapping("org")
    public Result org(){
        return indexService.org();
    }
    @GetMapping("user")
    public Result user(){
        return indexService.user();
    }
    @GetMapping("tj")
    public Result tj(){
        return indexService.tj();
    }
}
